package com.all.play.mybugluthree;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void onClick(View view){

        String str="kkkkkkkkkkkkkkkkkkkkkkkkkk";
        //str=null;
        String substring = str.substring(2, 12);
        Toast.makeText(MainActivity.this, ""+substring, Toast.LENGTH_SHORT).show();
    }
}
